#include <QString>

/** basic diary entry.
 * this contains all the details like date,month,day,sub,text
 */
class Entry
{
public:
	int year;
	int month;
	int day;
	int id;
	QString subject;
	QString text;	
	inline bool operator<(const Entry& obj)
	{
		if(year<obj.year)
			return true;
		else if(year==obj.year)
			if(month<obj.month)
				return true;
			else if(month==obj.month)
				if(day<obj.day)
					return true;
				else if(day==obj.day)
					if(id<obj.id)
						return true;
		return false;
	}	
};
